package com.ruoyi.system.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

/**
 * 订单对应的产品对象 web_mall_user_order_product
 *
 * @author wsliupan@126.com
 * @date 2021-06-19
 */
@ApiModel("订单保存的对象")
public class WebMallUserOrderProductSaveVO {
    private static final long serialVersionUID = 1L;

    /**
     * 产品ID
     */
    @ApiModelProperty(value = "产品ID")
    @NotNull(message = "产品ID不能为空")
    private Long productId;

    /**
     * 数量
     */
    @ApiModelProperty(value = "数量")
    @NotNull(message = "数量不能为空")
    private Long number;

    /**
     * 选中的SKU
     */
    @ApiModelProperty(value = "选中的SKU")
    private String sku;

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getNumber() {
        return number;
    }

    public void setNumber(Long number) {
        this.number = number;
    }

    public String getSku() {
        return sku;
    }

    public void setSku(String sku) {
        this.sku = sku;
    }
}
